/// access_token : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpLmxvdmVkb2cuaW5cL2FwaVwvdjFcL2F1dGhvcml6YXRpb25zIiwiaWF0IjoxNjI2NzY2NDQ0LCJleHAiOjE2MjczNjY0NDQsIm5iZiI6MTYyNjc2NjQ0NCwianRpIjoiekRHYnZPOWdEQ1RyakpDZiIsInN1YiI6MTA1LCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.6PR-C4aVX_P05rXd7Pbla4TBIi_fHVJiEngEnjJu7S8"
/// token_type : "Bearer"
/// expires_in : 600000

class LoginInfo {
  String? _accessToken;
  String? _tokenType;
  int? _expiresIn;

  String? get accessToken => _accessToken;

  String? get tokenType => _tokenType;

  int? get expiresIn => _expiresIn;

  LoginInfo(String accessToken, String tokenType, int expiresIn) {
    _accessToken = accessToken;
    _tokenType = tokenType;
    _expiresIn = expiresIn;
  }

  LoginInfo.fromJson(dynamic json) {
    _accessToken = json["access_token"];
    _tokenType = json["token_type"];
    _expiresIn = json["expires_in"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["access_token"] = _accessToken;
    map["token_type"] = _tokenType;
    map["expires_in"] = _expiresIn;
    return map;
  }
}
